package com.gaogao.java;

import java.util.Arrays;

public class TwoTable {
    int index;
    String name;
    int age;
    String data;
    public static void main(String args[]){
        TwoTable user01=new TwoTable();
        user01.index=1001;
        user01.name="高山青";
        user01.age=18;
        user01.data="2020-01";
        TwoTable user02=new TwoTable();
        user02.index=1002;
        user02.name="田";
        user02.age=18;
        user02.data="2020-01";
        TwoTable user03=new TwoTable();
        user03.index=1003;
        user03.name="里";
        user03.age=18;
        user03.data="2020-01";
        TwoTable[] users=new TwoTable[3];
        users[0]=user01;
        users[1]=user02;
        users[2]=user03;
        for (TwoTable u:users) {
            System.out.println(u.toString());
        }

    }

    @Override
    public String toString() {
        return this.index+" "+this.name+" "+this.age+" "+this.data;
    }
}
